home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
MIDI_MAN
/
CMIDIPOR.H
< prev
next >
Wrap
Text File
|
1992-03-07
|
1KB
|
41 lines
//--- CMIDIPort.h -----------------------------------------------------------
// Copyright ⌐ Paul Ferguson, 1990, 1991, 1992. All rights reserved.
//
// Description:
// Refer to the CMIDI Programmer's Manual for a complete desciption of
// these objects and methods.
// For use with THINK C 5.0 and the THINK Class Library.
//
//----------------------------------------------------------------------------
#pragma once
#include "CMIDIClient.h"
class CMIDIPort : public CObject // An abstract port, with methods and instance
{ // variables common to all port objects.
protected: // only called by subclass initializers
OSErr IMIDIPort(MIDIPortParams * portParams, short bufSize);
public:
virtual void Dispose(void);
virtual MIDIPortInfoHdl GetPortInfo(void);
virtual short GetRefNum(void);
virtual long GetRefCon(void);
virtual void SetRefCon(long theRefCon);
virtual void GetPortName(StringPtr theName);
virtual void SetPortName(StringPtr theName);
virtual OSErr SavePatches(ResType theResType, short theResID);
virtual void SetConnectionProc(ProcPtr theConnectProc, long theRefCon);
virtual void GetConnectionProc(ProcPtr * theConnectProc, long * theRefCon);
protected:
short itsRefNum; // From AddPort()
OSType itsPortID; // Identifier in MIDI Manager
OSErr itsResult; // Used by SavePatches()
unsigned short itsVersion; // Save upper word of client version
};
// end of CMIDIPort.h